﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/UserHome.Master" CodeBehind="Home.aspx.vb" Inherits="LEAD.newone" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <tr>
        <td>
        <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
      <a style=" color:Red;  font-weight:bold;"> LEAVE YOUR VALUABLE COMMENTS / SUGGESTIONS / BUGS HERE.</a><br />
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1"  BorderColor="Red"
           Width="553px">
    </asp:GridView>
    
<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1" 
        DefaultMode="Insert">
<InsertItemTemplate>
Title: <asp:TextBox ID="txtName" runat="server" Text='<%# Bind("name") %>' /><br />
Comments:<br /><asp:TextBox ID="txtComments" runat="server" Columns="50"
Rows="4" TextMode="MultiLine" Text='<%# Bind("comments") %>' />
<asp:HiddenField ID="hidDate" runat="server" Value='<%# Bind("date") %>' />
<br /><br />
<asp:Button ID="butSubmit" runat="server" CommandName="Insert" Text="Submit" />
</InsertItemTemplate>
</asp:FormView>

    
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 

SelectCommand="SELECT title, comments FROM discussion ORDER BY ID DESC"
InsertCommand="INSERT into discussion (title,comments) VALUES (@name, @comments)"></asp:SqlDataSource>
</ContentTemplate>   
   </asp:UpdatePanel> 
   </form>
   </td>
    </tr>

</asp:Content>
